#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int main()
{
    int n = 0, i = 0, count = 0, num = 0;
    float sum = 0.0;
    int flag = 0;
    scanf("%d", &n);
    int arr[2000] = { 0 };
    for (i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
        if (arr[i] < 0)
            count++;
        if (arr[i] > 0)
        {
            sum += arr[i];
            num++;
        }
    }
    float avel = sum / num;
    if (num == 0)
    {
        avel = 0.0;
    }
    printf("%d %.1lf", count, avel);
    return 0;
}